Hi,
seems like good tool.
Any estimate when cakephp v2 support will be added?
Regards
K3
On Monday, August 27, 2012 6:33:38 PM UTC+2, Łukasz Michalczyk wrote:
>
> Welcome everybody.
> I would like to announce a new CakePHP support application.
> It's called AutoBaker, based on Adobe AIR.
> It
I do this:
ping();
}
}
On Wednesday, September 5, 2012 4:06:39 PM UTC-7, Salines wrote:
>
> eg I have a plugin called Test, and the class named TestController, where
> I have a ping function , public function ping() {...}
>
> how can I call the ping function from app controller beforeFilter
Make a Common function in /your_app_name/lib/Cake/basics.php
function ping_common($params){
return $something;
}
Then You should use it in anywhere in your application.
function ping()
{
$response_something = ping_common($params);
}
--
Thanks & Regards
Chetan Patel
--
You receiv
my pc output value :
Array ( [*Login*] => Array ( [id] => 9 [username] => aa [password] =>
04b35cf604476680b22c4bb8b0888e4a [created] => 2012-08-03 10:13:38 [groupid]
=> 10 [status] => 1 [lastlogintime] => 2012-08-03 10:14:07 [lastloginip] =>
192.168.12.78 [logincount] => 2 ) )
linux serve
Hi Salines,
Thank you for the sample code. I eventually got it working by doing
something similar. I scrapped the idea of converting to json and just did
my normal db query using my model, sent the data to the view and used a
loop with the addRow method to build the chart:
data.addRow('[l
Create an app controller and have both controllers extend it. Then move
your ping function into the app controller.
- "The cold winds are rising"
On Sep 5, 2012 6:06 PM, "Salines" wrote:
> eg I have a plugin called Test, and the class named TestController, where
> I have a ping function , publi
Hello,
My example..
output js code:
http://bin.cakephp.org/view/1984101921
Here its graph elements
http://bin.cakephp.org/view/1072546230
And here is controller function
http://bin.cakephp.org/view/1812101735
I hope it will help
Dana srijeda, 5. rujna 2012. 21:03:52 UTC+2, korisnik andre
eg I have a plugin called Test, and the class named TestController, where I
have a ping function , public function ping() {...}
how can I call the ping function from app controller beforeFilter function?
public function beforeFilter(){
// call Plugin/Test/TestController/ping() ???
}
Thanx
-
This also works:
Router::connect(
'/',
array(
'controller' => 'pages',
'action' => 'display',
'slug' => 'home'
),
array(
'slug' => 'home',
'pass' => array('slug')
)
);
And you c
Tried ClassRegistry::init() as well, no help...
Upon further looking, it seems that although having so many models is
bogging things down, it is really the calling up those model across multiple
databases that may be the real culprit.
When I incrementally introduce each method call in the Contro
Upon further looking, it seems that although having so many models is
bogging things down, it is really the calling up those model across multiple
databases that may be the real culprit.
When I incrementally introduce each method call in the Controller’s
function,
the time it takes to load the
Hello,
I'm wondering about the best way to speed up my page load.
I have a View that displays a table with data from around 15 different
Models.
Many of them are unrelated. A few are in different databases.
The MySQL query is around 2 seconds (I can see from an sql_dump),
but the page can take
So I built my first CakePHP app. It's mostly Bake generated with very
little customization. Now my client wants to upload records into the
database. I have the file upload part working and am loading the file
into an array. The issue is that uploaded file is flat (each row has
both the parent and t
Hello,
I'm having a hard time getting data from the database to display in Google
Charts. I want to just display the datetimes(last_usage_human) for my
entries as a line chart.
I first just find my data, then I format it so I can pass it as json to the
charts:
// Grab all the data
$HourlyDen
Oh OK, the solution was just to create a route that ties the '/' URL
directly to the 'index' method in PagesController, rather than going
through the controller's display method, per the default behavior.
On Wednesday, September 5, 2012 11:49:09 AM UTC-4, amfriedman wrote:
>
> I've set up view c
You want to give it the action, not the URL.
public $helpers = array('Cache');
public $cacheAction = array(
'display' => '+1 week'
);
On Wed, Sep 5, 2012 at 11:49 AM, amfriedman wrote:
> I've set up view caching successfully for other controller/actions in my
> Cake application. But Pag
Hi,
Are you reading 1.3 manual and code on 2.x ?
On Wednesday, September 5, 2012 5:21:12 PM UTC+2, nikunj kansara wrote:
>
> I am using cakephp, I working on Error Handling
>
> I have follow http://book.cakephp.org/1.3/en/view/1188/Error-Handling
>
> I have create AppError My code is
>
> app/app_
On Wed, Sep 5, 2012 at 3:13 AM, shyandsy wrote:
> I am so sorry abou these easy question. This approve I am so weak in English
> skill.
> Please give me some instruction, thanks a lot.
>
> 1.The first sentence as below:
> "New in version 2.1. Blocks replace the deprecated $scripts_for_layout
> lay
It's a small point, but I'd suggest putting this in your model. It's
generally best to put as much in the model as possible.
I've been working on XML export destined for InDesign so if you have
any questions feel free to contact me directly. I'm no expert -- it's
my first crack at XML for ID -- bu
On Tue, Sep 4, 2012 at 6:09 PM, darkangel wrote:
> thanks for your answer but I dont get it
You would put that code inside the jquery ready() block. ie:
$(function()
{
// here
});
The code runs through each link inside your menu, comparing the href
value of the link against the page locatio
I don't see any difference. Please be more specific about your problem.
On Tue, Sep 4, 2012 at 10:18 PM, 易斌 wrote:
> this is a login demo,source code:
>>
>> $username= $this->data['Login']['username']; $password=
>> md5($this->data['Login']['password']); $user =
>> $this->Login->find('first',arra
Hi
I'm using the AjaxMultiUpload
(https://github.com/srs81/CakePHP-AjaxMultiUpload#readme)
I d like to use thsis plugin in a jquery ui dialog box but no matter what i
m truying it doesn want to work. I ve the file listing working but i can't
add file, the add file button is not present on t
YOU CANNOT HAVE DIFFERENT FILES CONTAINING THE SAME CLASS NAME
We will not support this before cake 3.0, and even by then, it will be
using namespaces. Thanks for not posting again in this ticket.
http://cakephp.lighthouseapp.com/projects/42648/tickets/1884
--
You received this message becau
I've set up view caching successfully for other controller/actions in my
Cake application. But PagesController does not seem to cache anything at
all.
At the top of PagesController.php I have:
var $cacheAction = array (
'display/index/' => array('callbacks' => false, 'duration' => '+1 week'
I have a related problem, I think. I cannot figure out how to cache any of
the pages in the Pages Controller. Particularly the homepage, which for me
is also routed to '/'.
On Tuesday, February 22, 2011 11:31:46 AM UTC-5, desig...@gmail.com wrote:
>
> Ok, So it's basically treating /home the s
Here's the answer!
The problem was in my model.
The fact is that I copied/pasted model from Cake PHP Cookbook Blog Tutorial.
The bugging character remained hidden until I converted my model php page
to ascii which showed the hidden character as a question mark.
Hope this will help someone else.
Did anyone have any look here - trying to attached a PDF to a email but
failing - do you have to actually create the file on the server or can you
do something like the readme suggests ($pdf = $CakePdf->output();)??
On Tuesday, 4 September 2012 12:04:48 UTC+1, thosfelt wrote:
>
> I've only had l
I am using cakephp, I working on Error Handling
I have follow http://book.cakephp.org/1.3/en/view/1188/Error-Handling
I have create AppError My code is
app/app_error.php
controller->set('file', $params['file']);
$this->_outputMessage('error404');
}
}
?>
I am cal
I have a situation where I use multiple plugin as datasource for external
content.
Two plugins have the same model name, but use their own resources:
(plugin / controller)
/beatport/tracks
/soundcloud/tracks
If access to one after my second mistake occurs and partially shows
identical results, e
No, not currently because i'm not familiar with MacOS filesystem.
W dniu poniedziałek, 27 sierpnia 2012 19:14:20 UTC+2 użytkownik ivnrmc
napisał:
>
> Mac version, is it planned?
>
>
>
> 2012/8/27 Łukasz Michalczyk >
>
>> Welcome everybody.
>> I would like to announce a new CakePHP support applica
>
> Hi All,
>
> I have a Form which contains only checkbox with different Attributes.I
> have a array with key value pair of name of the input field and check box
> values and i have passed the same to the view. I am using that form in the
> another view as a element however as a element it
Thanks,
I discover 2 ways of using same core for different projects:
One is what you say , uncomment in webroot/index.php line
Another way is to setting cake lib on include_path in php.ini
http://book.cakephp.org/2.0/en/deployment.html#multiple-cakephp-applications-using-the-same-core
2012/9/
edit the webroot/index.php & webroot/test.php files
uncomment the line that defines the CAKE_CORE_INCLUDE_PATH
mine looks like
define('CAKE_CORE_INCLUDE_PATH', DS . 'usr' . DS . 'share' . DS . 'cake'
. DS . '2.0' . DS . 'lib');
baking places this comment in index.php and test.php within web
Hi All,
I have a From which contains only checkbox with different Attributes.I have
a array with key value pair of name of the input field and check box
values and i have passed the same to the view.
Now how can i populate the checked to the form by the array or i have to
check them one by
yes, deleting/refreshing/updating the listsources should solve the problem
but I haven't managed to do that.
I tried doing something like this:
$dataSource = $this->MyModel->getDataSource();
$dataSource->listSources($updatedSourceList);
It doesn't cause ant error but listSources does not get upda
this is a login demo,source code:
$username= $this->data['Login']['username'];
> $password= md5($this->data['Login']['password']);
> $user = $this->Login->find('first',array('conditions'=>array(
> 'Login.username = '=>$username, 'Login.password = '=>$password )));
> print_r($user);
> exit ;
this is a login demo,source code:
> $username= $this->data['Login']['username']; $password= md5($this->data['
> Login']['password']); $user = $this->Login->find('first',array('conditions
> '=>array( 'Login.username = '=>$username, 'Login.password = '=>$password )));
> print_r($user);exit
>
on
Hi All,
Thankyou very much for your support and valuable suggestions!!!
Regards
PMR
On Wed, Sep 5, 2012 at 2:39 AM, Mohammad Naghavi wrote:
> Hi PMR
> the given links above are good enough to start with, I would however never
> go for installing apache and php manually for a develo
You don't use a view. Make an element to start with under views/elements.
Call it loginForm.ctp or something.
Then define an action in the form helper create call to point it at the
right controller/action
On Wednesday, September 5, 2012, shyandsy wrote:
> Hi, thanks for your anwser firstly.
>
I am so sorry abou these easy question. This approve I am so weak in
English skill.
Please give me some instruction, thanks a lot.
1.The first sentence as below:
"New in version 2.1. Blocks replace the deprecated $scripts_for_layout
layout variable. Instead you
should use blocks. The HtmlHelper
If you are using them as part of a link, you can do this:
echo $this->Html->link(
'Link title including >',
array('url'),
array('escape' => false)
);
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 5 Sep 2012, at 06:44:39, Lightee wrote:
> Dear CakePHP experts
41 matches
Mail list logo