Re: CakePHP Recurring Income/Expense

2012-11-20 Thread gimmebucks
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

Re: CakePHP 2.2 and Autocomplete Jquery

2012-11-20 Thread gimmebucks
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

Re: CakeResponse::expires() Fatal Error

2012-10-25 Thread gimmebucks
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

Re: Allow special characters in HtmlHelper

2012-10-23 Thread gimmebucks
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

Re: Login not Working on Deploy Sever...

2012-10-23 Thread gimmebucks
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

CakeResponse::expires() Fatal Error

2012-10-22 Thread gimmebucks
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 *

Re: generateTreeList starting from an id

2012-03-16 Thread gimmebucks
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

Re: PDF Excel generation in CakePHP 2.0

2012-03-16 Thread gimmebucks
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

Re: Need cakePHP project

2012-01-15 Thread gimmebucks
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

Re: datetime difference in days(created and action_date column)

2012-01-12 Thread gimmebucks
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

Re: Tree Helper Cake 2.0

2011-12-29 Thread gimmebucks
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, --

Re: radiobutton problem

2011-10-15 Thread gimmebucks
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

Re: Limiting the output from DB

2011-10-15 Thread gimmebucks
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

Re: CakePHP and other frameworks

2011-10-06 Thread gimmebucks
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

Re: Display posts on the home page AND posts visible to users only

2011-06-26 Thread gimmebucks
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

Re: current page info

2010-10-30 Thread gimmebucks
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

Re: search some duplicate data befor save data problem

2010-08-06 Thread gimmebucks
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                

Re: Re-usable registration and login plugin?

2009-11-11 Thread gimmebucks
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

Re: Auth components

2009-04-14 Thread gimmebucks
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

Re: Auth components

2009-04-12 Thread gimmebucks
, 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

Auth components

2009-04-10 Thread gimmebucks
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. --~--~-~--~~~---~--~~

Re: ACL - How to list all grants by ACO and action

2009-03-22 Thread gimmebucks
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',

Re: editing data does not work either way

2009-03-22 Thread gimmebucks
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

Re: ACL - How to list all grants by ACO and action

2009-03-22 Thread gimmebucks
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