cakephp

coverting existing flash with cakephp website into mobile version

How to convert the existing flash site into mobile version existing site in form of the cakephp frame work. We thought that html ,css,php,javascript may work all mobiles.We dont know exactly. Please tell us how many possible way to develop existing site into mobile version and also need to detect the from which browser the request is co...

cakePHP - ACL tutorial & SQL Error: 1104

Greetings! I run into a problem/bug in production environment with SQL Error: 1104 when deploying a project secured with the ACL tutorial. The full error: SQL Error: 1104: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay [CORE/cake/li...

Admin section in CakePHP

I'm having a hard time understanding how the CakePHP admin system works. Should all controllers who has an action which requires login include AuthComponent or just the one who handles the login/logout? Let's say I want to protect the add action of a controller. First I create admin_add() in the controller and then in the beforeFilter(...

[CakePHP] Dynamic fields on insert/edit form

hi all, let's say that i have 3 tables: books properties book_properties of course, i would like that when i want to insert new book (or update existing), to fill the form. fields that exist on form have to be defined as records in table properties. when i fill up those fields, data has to be saved in table book_properties. can ...

How can I display CakePHP input validation errors in a different spot the default?

Let's say I have field that looks like this in the view: <li class="bigfield"> <?php echo $form->input('phone', array('placeholder' => 'Phone','label' => false,'between' => '<br />')); ?> </li> If I have a validation rule on this field and validation fails, I see the following HTML: <li class="bigfield"> <div class="input text re...

How do I get the Bake console for CakePHP?

I am having trouble getting the Bake console. I am on windows running xampp. I'm doing the IBM cakphp tutorial. Here is my directory: C:\\ xampp htdocs ibm2(a test project--orginally called cakephp) app cake vendors (etc) It says to To use Bake, cd into the /webroot/app dire...

Is PHP enough to be a great developer or do you have to learn Rails/Python?

My question really is can you do EVERYTHING in PHP that you can do in (Ruby)Rails/Django(python)? By me just concentrating on PHP (Framworks too) will i be losing out in someway? I prefer PHP but everyone tells me Rails is better? Any advice? Thank you in advance ;-) ...

How do I make non-framework code to framework code? (PHP)

I just started using CakePHP and it's very different from just normal procedural or basic OOP PHP. I am still learning PHP and still read "beginning PHP/mysql" books that teaches you basic PHP. Also lots of sites online provide code that isn't for a framework. Is the only way to make non-framework code to say a framework, say cakePHP...

difference between object and static methos

whats the difference between static and object methods? where and why are they use differently? when do I use which one of those ...

Remove the default interface CakePHP links in default Cake apps?

How do I get rid of the default "CakePHP: the rapid development php framework" link that shows up on the top left on every page of Cake app's with default configurations? It's not part of the view, and the only way I can think of is to display:none the div in the CSS. I'm thinking there has to be some setting in the app's configuration....

cakePHP get self hasMany array

I have an table with fields like: empid,empname,empcode,department_id ... I need an array like [Model] -------[department_id 1] --------------[0] --------------------[empid] --------------------[empname] --------------------[empcode] --------------[1] --------------------[empid] --------------------[empname] --------------------[emp...

CakePHP session sharing between two apps, on the same domain

I am having two cakephp application working on the same domain. I access them like localhost:8080/wishlist & localhost:8080/lighthouse The wishlist is a separate cakePHP application and the lighthouse is a separate CakePHP application. The login page is at localhost:8080/lighthouse, now i want the session generated by the lighthous...

Does CakePHP treat all INT fields as ID's for join tables?

I am trying to save a User, their Profile, and some tags and my join table that links the profile and the tags keeps getting messed up. The profile model is called Instructor, the tag model is called Subject. The Instructor has a phone number and a zip code and for some reason CakePHP thinks these are the fields it should use when creat...

what does this do, preg_match

preg_match('/^(AREA|TEST)$/i', $arrow) ...

cakephp database not found

I have project developed using cakephp which is getting data from different DBs, but if one of theses database some pages not open and give me the following error : Database table tablenae for model moedlname was not found. ..and I have in this page other data displayed from the other database which work probably. how i can deter...

CakePHP without htaccess and mod_rewrite - how to overwrite WEB URL PATH

So I installed CakePHP on a IIS box and followed the steps of uncommenting the appropriate lines in core.php to make my URLs work as index.php/controllername/methodname/ My only problem now is that all the convenience functions such as $html->css, $html->link, etc. are pointing to some wacky paths. If I am viewing index.php/pages/home d...

[CakePHP] htmlspecialchars

hi all, if i submit data like my string using form on insert/edit view, on a list view i'll get my string as italic (like here). how can i avoid that, and to have my string (with visible all html tags) on all forms? i.e. so it appears like this: <i>my string</i> thanks in advance! ...

PHP general form generator/builder

I'm looking for an open source php form builder or form generator to add/edit/delete/search records? I have to create a simple manager for some records, it's a common application that should be found easily, but I can't find any good code/class/application/etc :( Any help is appreciated. ...

cakephp find('list') - problem using

I'm trying to get an array to poplulate a Counties select. If I use find('all') I can get the data but this array needs flattening to use in the view with $form->input($counties). If I use find('list') I can't seem to get the right array - which is simple array of county names. What I have tried is this: $ops=array( 'c...

CakePHP FormHelper - Can't disable multiple checkboxes

I've got the following in my view: echo $form->input('Category', array('multiple' => 'checkbox', 'disabled' => true)); But, the checkboxes aren't disabled... ...