I have a multilingual site and I am trying to use the paginator. However the pages navigation never includes the language (just the controller and action are included)
<?php
echo $paginator->first(' << ', null, null, null);
echo $paginator->prev(' < ', null, null, null);
echo $paginator->numbers();
echo $paginator->next(' >', null, ...
Hi all,
I am using cakePHP 1.26.
I am trying to sort the data by Date in DESC order but of no luck.
$this->set('posts', $this->Post->findAllByZero('0', array('order'=>array('Post.createdate DESC'))));
I can't figure out what's wrong in the code as shown above.
Could you help me please?
Edited reason:
I have altered the code and it...
Hi all,
I am following the instruction in the cookbook web site of CakePHP:
link text
And got this error:
Undefined variable: paginator [APP/views/post/index.ctp, line 46]
I am not sure if $paginator is a built-in variable in cakePHP 1.26.
In my Controller, I have this:
$this->set('posts', $this->Site1->find('all', arra...
I'm working on a real estate application, where one Home can be listed by either one or two Realtors. As such, I'm trying to follow the example given in section 3.7.6.7 of the Cake Cookbook. Here's what's going on in my Realtors model:
class Realtor extends AppModel {
var $primaryKey = $num;
var $name = 'Realtor';
var $hasM...
Hi all,
Am trying to run a controller action as a cron job, but it is giving me the message, "could not open input file"
To do the above, i used this link, http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron-and-the-command-line....
But not working for me, I also tried to place the cron dispatcher in /app/web...
Hi All:
I have a godaddy hosting account and having some problems with
routing. The files are under /cakephp under the default /html folder.
The full url is still showing instead of the desired www[dot]domain[dot]org
Please help.
The current setup
/cakephp/.htaccess
RewriteEngine on
RewriteBase /cakephp
RewriteRule ^$ ap...
Hello
I have referred http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron-and-the-command-line and created cron_dispatcher.php and placed it in the app folder.
I have return some test email function for the cron job to run in my users controller's test method.
And i have created a Cron job in my web server's c...
my code is given below,all the required js files are included.
<?php
echo $this->Html->script('jquery');
echo $this->Html->script('jquery-ui');
echo $this->Html->script('jquery.validate');
echo $html->css('jquery-ui');
?>
when i submit the form without giving any value for UserDetailAliasName the form does not submit...
Hi all,
I am using cakephp 1.26 and doing pagination.
could you help me with the following code please?
I can't figure out what's wrong in the code.
$this->set('posts', $this->paginate = array('order'=>array('Post.created'=> 'DESC'), 'conditions'=>array('Post.zero'=>'0'), 'limit'='6'
)
...
Hi all,
I am using cakephp 1.26.
I am doing some self-learning about Pagination in CakePHP.
I have tested the following code in my localhost, and it works fine.
I have altered a little change to the second line of code, and found that
nothing change to the result.
1st version:
$this->paginate=array('conditions'=>array('Testing.zero'...
Hello,
I have a serious deadlock about my project. I am looking for a solution for days but there is nothing.
My index page have 4 different mysql queries. I tried to code this at first inside 1 controller and 1 view. It was not the right way. Then somebody suggested using 4 elements with requestAction() function. It was very good at f...
I am using the Cake's inbuilt auth module . Everything is working fine on my production environment . However on my local environment , I am not able to login . I traced out that the problem is because the sessions seems to get reset on every redirect . As a result of which cake is not able to find one of it's array ( Config) in the sess...
Hi all,
I am doing some self-learning about pagination in cakePHP 1.26.
In the PostsController, I have this code:
$this->set('views', $this->Testing->Reply->findAllBypost_id($id));
I am trying to alter the code for pagination purpose, and this is what I have tried out:
$this->paginate=array('conditions'=>array('Reply.post_id'=>'0'...
Hi all,
I am using cakePHP 1.26.
In the PostsController, I have this:
$this->paginate=array('conditions'=>array('Reply.post_id'=>$id),'limit' => 1);
$w = $this->paginate($this->Post->Reply);
$this->set('views', $w);
And in the view.ctp, I have this:
<table><tr><td>
<?php echo $paginator->numbers(); ?>
<?php
...
Hi all, am showing a list of emails, and for each email on click, am trying to create a popup, to show the full email content....
the prob is that, popup works only for 1st email, for rest it doent show anything,
here is my code,
foreach ($email as $x){
echo "<div id='popuup_div' class='popup_msg'>";
echo "<d...
Hi all, I want to make a new ajax request automatically while one ajax request is being processed (in cakephp), how can i be able to do that?
I know that user can initiate multiple ajax request simultaneously, but how can i initiate a new ajax request automatically when another ajax request is made?
Below is the way, am calling one aj...
Hi
Fatal error: Cannot redeclare config() (previously declared in D:\xampp\htdocs\cakephp-trial\cake\basics.php:59) in D:\xampp\htdocs\cakephp-trial\cake\basics.php on line 76
I am getting this error
Please help
Thanks.
...
At present I am working with a cakephp solution (closed source unfortunatelly) and noticed sometimes that a string won't be translated even if it has msgid entry in the po file.
I realized that this happens if the source reference is not in the entry. If I type in a source reference to that string, or remove all source references from an...
Hi,
i have page which generate lightweight box it has function as
popups is another folder which contain allwidgetMenus.html
the function is as follows
function ajax_showTooltip(e,externalFile,inputObj)
{
currentTooltipObject = inputObj;
//window.onresize = function(e) { ajax_positionTooltip(e); } ;
if(document.all)e = eve...
I want to validate radio button, when i checked radio button textbox will be disabled,
but it cant happens.
what will be the exact js for validate radio button.
My JS code is :
function selection_project_phd()
{
var phds = document.getElementById('EmployeeGuidedProjectPhd').value;
var projs = document.getElementById('Em...