I have a page which returns results that are filtered on an organization_id. The URL looks like this:
nameofview/organization_id:1/page:2/
I'm using the built in Paginator controls and I pass $this->PassedArgs into it like this:
<div class="paging">
<?php echo $paginator->prev('<< '.__('previous', true), array('url' => $this->Pas...
I'm running wampserver and can't seem to use php files in the CLI. Supposedly there are two modes of running php, CGI and CLI. I can't figure out how to enable CLI since I don't see php-cli.exe in /wamp/bin/php/php5.2.6. When I try and execute php scripts they wont run. Does anyone know how to get the CLI running php scripts using wam...
How do you style the paginator with CSS used in CakePHP?
I can't find a way to attach a CSS class / ID to each of the "span" generated by the default pagination helper in CakePHP.
...
Hello guys,
I'm writing an app that accepts .mp4 uploads.
So I've a 24.3MB .mp4 that is posted to the server, but it fails silently.
The next smallest file I have is a 5.2MB .flv. It's not the file type of course, but file size.
I wonder if anybody could shed some light on this?
P.S. the relevant php.ini entries are as follows:
memo...
The getClientIP( ) method that comes with CakePHP is returning private IPs sometimes. For example IPs like 127.0.0.1 or 192.x.x.x. I assume this is caused by proxies.
Looking at the getClientIP( ) code it does seem like it tries to deal with proxies issues but it doesn't really check if the IP is private or not.
What would be the best ...
Hi,
I m using CakepHP and JQuery for my app.
In my code, there is a line like this which creates a Textbox of Label from Attribute table label column and With id from the table Attribute idcolumn ,class name as calendarSelectDate (to make use of Calendar of JQuery )and size too ..
Line 1
echo $form->input($r['Attribute']['labe...
I am creating an application which tracks signatures form various organizations. I have a simple form which I can pass an ID to, so it will automatically select the right organization. The URL for add looks like this:
/signatures/add/3
The form works well. By passing 3, or any other ID, it automatically selects the right field, be...
I am quite new in cakephp, first i would tell what i am making and where i am facing problem,
Basically iam working on the report card system for this one, i am making a form where we can add the class name, session year and the no of the section and its name, for the session we have used javascript datepicker, and for adding the name of...
What does $this-> mean in CakePHP?
Please answer this in two parts...
What does $this refer to?
What does -> refer to?
Can someone explain each part explicitly in terms of the statement $this->Post->find('all'); in the Post controller. Why do you need the ->Post part if it is in the Posts controller?
...
If you are inside UsersController, what purpose does the $this->User part of the statement "$this->User->find('all');" serve?
What is the $this referencing? Is it an instance of something? What is the current object in this case?
...
Hi,
I have added a new column to my table Attributes which already has (id , form_id(foreign key),type,label,size,sequence no,instr)
where instr is the new column i have added.
My application is in Cakephp and Mysql.
I have used the following code to insert into the table Attributes But the field instr alone not inserted .
...
I'm building a CakePHP site where users can press a button to "save this newsletter as HTML". It seemed like a good idea to use a combination of requestAction and a media view to serve up the content to them, so that they get the exact same content as the live app. The only downside is that requestAction uses an empty layout, so there ar...
How do I set up Cakephp to work properly on Bluehost? Should I place my app, cake and vendor folders as well as .htaccess and index.php files in the /public_html/ directory? I followed the instructions here... http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess to no avail. All I see when I type the name to my website is ...
I'm about to begin building a huge clinical healthcare application with PHP, and I'm looking for some advice on a framework. I need to be able to come up with a quick prototype, so it's important that the framework takes care of many mundane tasks; therefore, I've narrowed it down to CakePHP or Symfony.
I'm hoping to get a few developer...
Error: Database table users for model User was not found.
I'm expriencing the error show above and I'm unsure why this is happening. I've searched for a possible solution to this problem and the most prevalent solution is... going to the app/tmp/cache directory and removing the files in the model and persistent folders. I've done that...
Hi,
In my Cakephp code i am having the following code. If i click on the image delete it moves to the link in href.
in the href i dont know how to give my php value .I tried with like below But it didnt works ..
<a href="http://localhost/cake_1.2.1.8004/index.php/forms/delete/"<?php echo $r['Form']['id'];?> >
<img borde...
Hi,
I am using cakephp for form designing application.
In my code
<?php echo $html->link('Delete', array('action' => 'deleteForm', 'id' => $r['Form']['id']), null, 'Are you sure?' )?>
In my controller
function deleteForm($id = null)
{
$this->Form->del($id);
$this->Session->setFlash('Your entry has b...
I'm trying to call the 'tariff' action of my 'countries' controller using jQuery ajax() and pass it a country name in the following format:
/countries/tariff/countryname
however, with the following code ( set to GET ), it is calling this with the get '?' added:
/countries/tariff/?countryname
$(document).ready(function(){
$('#Coun...
In CakePHP, I have two tables, Countries & Networks. They have a HABTM relationship and are joined by countries_networks.
I'm trying to get all countries from the countries table where the 'name' field in Networks = 'o2'
I've realised I can't do this using a basic find(), so I've been experimenting with the containable behaviour. I hav...
Hi all! I have a rather basic problem: I can't seem to connect CakePHP to my SQLite database. Surprisingly, I didn't find lots of information about it on the internet, though I may be looking up the wrong keywords. Nevertheless, this is my connection code:
var $default = array(
'driver' => 'sqlite',
'connect' =>'sqlite_popen',
'pe...