Archives for December, 2008
I’m going to show a way that I’ve found to easily edit N1 relationships with the admin generator of symfony 1.2 Surely it can be polished, and maybe it could be done better another way, if you know how please let me know. We are going to use the next model schema: # config/schema.yml propel: lista: [...]
Today I needed to access a webserver with phpMyAdmin configured as default page if no virtual host matched the requested one. It was configured to deny access from outside so my solution was to use a SSH tunnel: carlos$ ssh -L 10080:192.168.1.3:80 user@host So I can access phpMyAdmin writting this in my browser address bar: localhost:10080 That’s all!
Recently I discovered that Firefox lets you override alert and confirm window object methods. I tried this with prototype and surprisingly it just worked! (Note that it is not tested in IE or Opera and others yet, but it also works in Safari). <div id="test" style="background:red;color:white;display:none;"></div> <script type="text/javascript"> window.confirm = function (s) { alert(s); }; window.alert = function (s) [...]
I hope the title is self-explanatory … Several times, in a symfony project or a project which runs with the help of the prototype library, some problems arise regarding the scope of certain javascripts variables declared inside ajax request (that can be theyselves declared within other ajax request). Usually , you need to access certain javascript varible [...]
dWhen executing this code: $this->items = $object->getItens(); ... foreach($this->items as $item) { ...yadda yadda $item->getId() yadda yadada } within a symfony action, the php engine throws: Notice: Indirect modification of overloaded property xxxActions::$items has no effect in xxxactions.class.php That’s related to a php bug , whose implications in symfony are described here. It looks like it’s related to php 5.2. I can see it [...]
Recent Comments