Create a scheduler table with frequency and amount field. Run a daily cron
job to check for recurring item and add it to the real table.
On Tuesday, 20 November 2012 19:19:38 UTC+8, malaiko wrote:
I'm new in CakePHP, I started recently.
I decided to do a project which I can learn more of
Attach jquery ui autocomplete to your page. Then change the 'source' to
your controller's action(output in json). make sure the json output have id
and label field.
sample json output for
autocomplete http://gimmebucks.asia/tafsir/keywords/getlist.json?term=sahabat
On Tuesday, 20 November 2012
anyone?
On Monday, 22 October 2012 17:15:10 UTC+8, gimmebucks wrote:
I'm using cake 2.2.2 and trying to set expires headers.
in my AppController.php
public function beforeRender(){
CakeResponse::expires(new DateTime('+5 day'));
}
but i got this error
*Fatal error*: Call to undefined
setting 'url' options in image can do the trick too.
$this-Html-image($image['Image']['thumb_path'], array( 'alt' = $title
,'url' = $yoururl));
On Tuesday, 23 October 2012 12:08:13 UTC+8, bs28723 wrote:
I would like to use Html-image and Html-link together, but Html-link
will convert
I got similar problem few months ago but it's ok after clear browser cache
and delete server /app/tmp/cache files.
On Saturday, 20 October 2012 06:24:13 UTC+8, GerarD wrote:
Hi there... I don't think that's the problem. I check all my data in the
DB and the Query, and it's all fine...
I
I'm using cake 2.2.2 and trying to set expires headers.
in my AppController.php
public function beforeRender(){
CakeResponse::expires(new DateTime('+5 day'));
}
but i got this error
*Fatal error*: Call to undefined method
CakeErrorController::_getUTCDate() in *
What i always do is get the node lft and rght value.
then set conditions array('Model.lft ' = $node['lft'],'Model.rght '
= $node['rght'])
to include the node, substitute with = and with =
On Mar 16, 12:06 am, Ernesto e.fanz...@gmail.com wrote:
i forgot to say i've already tried the conditions
for pdf, you can use pdf library such as mfpdf that convert html to
pdf.
for excel(csv) you can use php built-in csv function, fputcsv
On Mar 16, 12:36 pm, konda guthakond...@gmail.com wrote:
Thanks to all.
I want to generate reports using PDF and Excel format. Please help me
how can I
Can i see your sample works(portfolio).
On Jan 14, 1:03 pm, Hung quochung@gmail.com wrote:
Hi everyone !
I am Hung in Viet Nam, I have strong experience with cakePHP and now
i am looking for some project for my team to work on, if you guys have
project pls contact me.
Thanks
--
Our
convert to unix timestamp using TimeHelper::fromString() , substract,
and you'll get duration in miliseconds.. erm.. ever heard of this
question before..
On Jan 12, 3:18 pm, aku Gaban akugaba...@gmail.com wrote:
Dear friends
I would like to ask how to implement calculation at view.ctp and
I'm looking for it too(2.0).. currently i did it manually (nested
loop) and find out that it's quicker than using helpers (1.3)
On Dec 29, 6:45 pm, Waterschaats jschoonderb...@gmail.com wrote:
Is there already a Tree Helper for Cakephp 2.0. I need it to generate
unordered lists.
Thanks,
--
set the 'legend' to your desired name.
On Oct 14, 3:02 pm, WebbedIT p...@webbedit.co.uk wrote:
I think the problem is 'label'=true as the label parameter allows you
to override the default label, it expects a string, not a true/false.
How would values of 'on' or 'off' be valid for a user_id
Did you tried to include paginator helper in your controller?
On Oct 15, 4:39 am, Yves S. Garret yoursurrogate...@gmail.com
wrote:
I took the pagination route.
Here is my controller:
http://bin.cakephp.org/view/340330848
Here is my view:
http://bin.cakephp.org/view/2041962013
And this
Yes and i always use css framework like blueprint css and 1140 css
with my CakePHP project without any issues.
On Oct 6, 10:53 pm, zer0_gravity zr...@hotmail.com wrote:
Greetings,
Question can CakePHP made to work with other CSS Framework
(Elements,Blueprint etc) without breaking the CakePHP
You can redirect any links to homepage with routes setting. edit your
app/config/routes.php and replace current code with this
Router::connect('/', array('controller' = 'posts', 'action' =
'index'));
To assign user to post, you have to create user_id field in your post.
You can assign the user_id
you can create links in elements and do some checking to identify the
current controller and action. it's $this-params variable
On Oct 31, 6:49 am, grandioso something.like.a.phenome...@gmail.com
wrote:
I feel really stupid for asking this, but I'm just noob baker, so...
How do I add a selected
why not separate it to 2 model and set hasMany relationship. it will
be more easier.
On Aug 5, 3:19 pm, hoss7 hoss...@gmail.com wrote:
i have this array:
Array
(
[Usercat] = Array
(
[subcat_id] = Array
(
[0] = 3
I'm looking for it too..
On Nov 11, 9:06 am, Al al.scheur...@gmail.com wrote:
Hi All,
I've used Auth on several applications and have learned a lot in how
to (and not to) create a user registration/login/password reset
system. but..
Can anyone tell me if there is an already created
Thanks to Gonzalo Servat brian.
problem solved.
On Apr 12, 3:04 pm, Gonzalo Servat gser...@gmail.com wrote:
On Sun, Apr 12, 2009 at 3:52 AM, gimmebucks sapew...@gmail.com wrote:
I want the system to display :
You are not authorized to access that location.
But not
You
, gimmebucks sapew...@gmail.com wrote:
I'm usingauthcomponent and it's working like charm.
on layout file(default.ctp), i use:
echo $session-flash('auth');
and the result is:
You are not authorized to access that location.
1
How to get rid of '1' character?
Please help
I'm using auth component and it's working like charm.
on layout file(default.ctp), i use:
echo $session-flash('auth');
and the result is:
You are not authorized to access that location.
1
How to get rid of '1' character?
Please help.
--~--~-~--~~~---~--~~
What i did..
1) get logged in user id - $this-Session-read('Auth.user.id')
2) find all related field on acos with aros_acos model.
$this-ArosAco-find('all',
array('fields' = array('Aco.alias','Aco.lft',
'Aco.rght'),
'order' = 'lft ASC',
you should reassign the $key value before calling $this-Model-save.
otherwise will assume that you are inserting new row.
hope that'll help
On Mar 23, 1:22 am, misterjinx mariusbarbulesc...@gmail.com wrote:
It's me again. I put validation to false in the saveAll() method, and
it's half working
What i did...
$this-ArosAco-find('all',
array('fields' = array('Aco.alias','Aco.lft',
'Aco.rght'),
'order' = 'lft ASC',
'recursive' = 1,
'conditions' = array(
'Aro.id' = $this-Session-read
24 matches
Mail list logo