Hi,
I have an existing CakePHP that runs on a LAMP environment and need to install it on a USB drive for mass public distribution.
There are a few requirements:
Protect the source code
No installation required
Windows support essential
MAC & Linux would be a bonus
Must run offline, without Internet connection
Ability to sync with ser...
I've got a CakePHP application, and the following directives in my httpd.conf
ProxyRequests off
ProxyPass /forum/ http://somesite.com/phpbb3
ProxyPass /gallery/ http://someothersite.com/gallery3
<Location /forum/>
ProxyPassReverse /
</Location>
<Location /gallery/>
ProxyPassReverse /
</Location>
Without CakePHP this wo...
Hi,
We have a part list in the "garagecar/view/index.ctp" view page. The part list is populated with PHP when the page is first loaded. Each part has a remove button. When the user clicks "remove", the controller link removes the part while the JQuery/Ajax removes the HTML that displays the part in the index:
$html->link(__('remove', ...
Is there way to invoke a CakePHP console shell on server without shell access? I have written a shell for performing some once off (and hence not a cron task) post DB upgrade tasks.
I could always just copy the logic into a temporary controller, call its actions via http and then delete it, but was wondering if there was a better way to...
I am trying to make a simple redirector controller in CakePHP. I'd like the URL to be of the form:
http://example.com/redirector/<numeric id>/<url to redirect to>
For example,
http://example.com/redirector/1/http://www.google.com
The URL that I need to redirect could be more complex, of course, including slashes, parameters and ...
In core.php I can define
Configure::write('Routing.admin', 'admin');
and /admin/controller/index will work.
but if I define both
Configure::write('Routing.admin', 'admin');
Configure::write('Routing.superuser', 'superuser');
and try to look at /superuser/blah/index/ instead of it saying the controller doesn't exist it says
Error...
I'm working on an application which has data imported from a foreign (and wholly unchangeable) source. I'll simplify some of the tables to explain the problem. Below are the tables with their primary keys.
invoices (doc_number, date_printed, batch_number)
headers (doc_number, date_printed, batch_number)
deliveries (doc_number...
My web application only has one level of authorization. It's either you're logged in or not. Would ACL be overkill for this? Would the Auth component be sufficient/secure enough to handle this situation?
Does CakePHP session anonymous users? If so, is there a way to turn that off? I don't think I need sessions to be passed around if...
I've just started a project and need a little push in the right direction. Here is my table structure:
users departments sub-departments
------- ------- -------
id id id
name name name
email
password
created
modified
posts photos profiles
------- ...
I'm trying to write a webapp with CakePHP, and like most webapps I would like to create an installer that detects whether the database has been initialized and, if not, executes the installation process.
This process will be entirely automated (it assumes the database itself already exists, and that it is granted full administrative acc...
i want to implement SSO in cakephp project
i will used cookies for doing this
some adivice me to check cakephp as there is a property that let you share session in diffrent application using sessions
...
Assuming two database tables: Funds and Prices, in which Funds hasMany Prices.
What I wanted to do is to retrieve the latest 15 prices of a particular fund in a certain scenario. Is there a means in CakePHP to make a $this->Fund->find('all') call that would allow me to limit the number of rows to be retrieved from the associated Price t...
Hi,
I am a trying to apply Test Driven Development to producing a web page and am having trouble using my database. I am developing using Cake 1.1, PHP5 and SimpleTest to unit test.
My problem is that I have a test that:
Inserts a row using a direct SQL statement
Tests if that row was inserted (by using a function in my main program....
in the index.ctp, i can get view all the details of data for my customer table. I wan to have a function which let user to select view by company, when user select the company, i use javascript to get know the company id,
but i got no idea how to sort the data view by the company id..
i wanted to just list out the data in the index.ctp ...
I have a form which looks like this:
Delete
[Publisher One ] []
[Publisher Two ] []
[Publisher Three] []
Add[ ]
So basically, every Publisher appears on the page in its own field. I can modify any of the Publisher names, delete any of the Publishers, or add a new publisher, all on on...
I am trying to get the translate behaviour working, i deleted the translated comlumns from the original table and now I am getting errors when performing the following query:
$menu = $this->Menu->find('first', array('conditions' => array('Menu.title' => 'main-nav')));
My Menu model:
<?php
class Menu extends AppModel {
var $name =...
in all my views i have a login/register (cake)form.
my question:
can i use the file cache engine with <cake:nocache>form</ cake:nocache>
1.) open url "www.domain.com/home"
2.) cachefile generated
3.) look perfect
4.) refresh (f5)
5.) error (when debug=1):
Parse error: parse error in C:\xampp\htdocs\cake_1.2.3.8166\app\tmp\cache\...
I was told that $.getJSON is the best way to send data to and from external servers. I probably wasted 7 hours of my time trying to use JQUERY's Ajax to do so just to find out that no browsers allow that type of method. I would like to send the data using the Jquery getJSON and I am using cakephp as my receiving end (i.e. My external se...
Hi all,
I have an add.ctp file, which will enable the user to add new entries,
there is another view.ctp file which will list all the existing
entries from the database.
How would I include these existing entries within the add view page,
So that user should be able to view the existing entries at the bottom
of the page when he is makin...
What I'm trying to do is pull up profile info w/ the profile's comments. I get everything as expected. No error returned, array is formatted perfectly. My concern is the queries that are run. It runs one query for each ID to get its photo (the start of the query is noted in comments in the code below). I guess this is the only way to get...