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...
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...
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(...
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 ...
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...
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...
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 ;-)
...
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...
whats the difference between static and object methods? where and why are they use differently? when do I use which one of those
...
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....
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...
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...
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...
preg_match('/^(AREA|TEST)$/i', $arrow)
...
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...
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...
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!
...
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.
...
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...
I've got the following in my view:
echo $form->input('Category', array('multiple' => 'checkbox', 'disabled' => true));
But, the checkboxes aren't disabled...
...