September 14, 2008
Creating a basic form where you can add file inputs for file uploads dynamically using jQuery for the client side and cakePHP for the server side. First create the form with your form fields in it: < ?php echo $form->create(’NewsItem’, array(’type’ => ‘file’)); //Form for adding the plugin files echo $form->input(’PluginFile.1.description’); echo $form->input(’PluginFile.1.File’, array(’label’=>’File’, [...]
August 17, 2008
Yes, that does sound like a pointless title. Let me explain the situation, we have a self referential model, Pages, which has child pages and a parent page. Because I’m using CakePHP for this project I have added the Tree Behaviour to the model also which is really handy, but you don’t need that behaviour [...]
for tips on PHP and web development