Re: 3.0: a peek into CakePHP's future

2012-12-07 Thread pete
; approach is not implemented to generate new DB schema. Also i think is it more the right direction to change models on PHP-side and than apply changes automatted to the DB. I worked with both approaches and i feel better with the Doctrine "code first" way. greets pete by the way i g

Re: 3.0: a peek into CakePHP's future

2012-12-05 Thread pete
s in cakephp to write the model and generate the database. Doctrine has also options to generate migration files for differences in database tables and models during the development process. I mean this features should bbe used in future. greets pete -- Like Us on FaceBook https://www.facebook.c

Re: Welcome Page not finding CSS/Images

2012-06-23 Thread Pete Varley
I had this same issue. This fix worked! Thank you. On Wednesday, September 2, 2009 6:20:21 PM UTC-4, ajoberstar wrote: > > So I finally gave up trying to find the error and re-extracted the > files from the tar.bz2 I downloaded from Cakeforge. I saw that that > worked before changing anything

Sorting by a (second level) associated model using paginate helper

2011-01-31 Thread Pete
Dear all, I suspect this is either really easy or very hard. I've been through endless apparently similar questions on here but haven't been able to figure out the answer. I have a "Quote" model, which I am trying to list in a view. Quote belongsTo Attendance which belongs to Person. I am trying

Creating Performance in Mind Dynamic Nav with Caching

2010-10-21 Thread Pete
Trying to understand the best method for creating my navigation. One of my controllers selects my top level items (which I want to be displayed on every page as the navigation elements). I've currently created the following in my app_controller.php file: function beforeRender(){ if(!$this

HABTM Relationships Problem

2009-03-18 Thread Pete Bekisz
Hi all, I'm having some problems with saving HABTM relationships, and I was hoping you could help me. The two models in question are Registrant and Product. In my Registrant model, I have a method that builds an array that looks like this: Array ( [Registrant] => Array (

form helper dateTime (cake 1.2)

2007-07-12 Thread pete
hi, is there a way to set the minYear, maxYear for dateTime? dateTime('dateTime','DMY',24,null,null); ?> i want to reduce the number of years within the form thanks pete --~--~-~--~~~---~--~~ You received this message because you are s

Re: cakex html inside controller

2007-06-19 Thread pete
creating a addUser.thml inside /views/elements? - Or is it better to create "addUser" plugin (like the cakex examples) thanks pete On Jun 19, 1:29 am, "jitka (poLK)" <[EMAIL PROTECTED]> wrote: > Well, not everything what is possible is automatically right. > &g

Re: cakex html inside controller

2007-06-18 Thread pete
hm..you are right, the thing is i want to have the "add-form" on the same page as where i show the data. is there a way to assign('add') the view.html code? something like $objResponse->assign('add', 'innerHTML',$??view.thtml??); thanks pete On Ju

cakex html inside controller

2007-06-18 Thread pete
hi, im using cakex (xajax) for my project. i'm just curious if its a good idea to put html code inside the controller for example i have a ajax "addForm". Do you think this is a good idea to do it or is it better to have all html code inside a view.thtml ? thanks pete VIEW lin

Recursion for my own custom query?

2007-06-17 Thread Pete
I have a function in my model, to get a list of the months that I have blog entries in: function getMonths($limit = null) { $sql = "SELECT DISTINCT month(Entry.date) number, monthname(Entry.date) title, year(Entry.date) year FROM entries as Entry ORDER BY date DESC"; if ($limit): $sql .= " LIMIT

ajax multiple tables, row delete

2007-06-07 Thread pete
user.thtml file for each table. thanks for helping pete VIEW FirstName Event.observe("remove<?php echo $user['User']['ID']; ?>", 'click', function

Re: selectTag

2007-06-01 Thread pete
7;, $status, null, array(), > null, false, false); ?> > > try to replace fieldname with "Modelname/fieldname". > > 2. do you want to select delivered as a default value ? > > On Jun 1, 10:32 am,pete<[EMAIL PROTECTED]> wrote: > > > hi, > &g

selectTag

2007-05-31 Thread pete
lined Deleted Delivered Inquiring Invoiced Open Qualifying 1. has anyone an idea why i get the notice? 2. how can i set Delivered as SELECTED ? thank you pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake P

simple relation

2007-05-24 Thread pete
hi, i still play around with creating a simple relation, and i don't get it to run. thanks pete TABLES: status id description project id status_id project_title CONTROLLER $this->set('projects', $this->Project->findAll()); every project has one status. ho

Re: hasOne Problem

2007-05-23 Thread pete
hm.. i want to print out all projects and instead of the project.status_id, i want to show the status.title how could i do that? thanks pete On May 23, 5:29 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On May 23, 2007, at 3:21 PM, pete wrote: >

hasOne Problem

2007-05-23 Thread pete
[Status]=>Array([id]=>[title])) } the array is empty and i dont get the status title anyone has a hint how that could work correctly? thanks pete Status is empty. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

ajax div update

2007-05-21 Thread pete
hi, can anyone tell me why updating 2 divs with ajax->link works, but not with ajax->editor. basically i want to enter a value for resource_8 and then calculate a new value for resource_9 thanks pete View div("resource_8); ?>divEnd("resource_8"); ?> div

ajax inline edit

2007-05-21 Thread pete
div a view... thanks for helping Pete VIEW (view.thtml) editor('resource_'.$i,'/projects/update/'.$i); ?> UPDATE (view update.thtml) CONTROLLER; // function update() { $this->render('resource_1', 'ajax'); } --~--~-~--~~-

small ajax problem

2007-05-20 Thread pete
\default.thtml on line 8 there must be something going on with the mymessagediv, because the "data saved" message isnt showing... any idea where the error could be? thanks pete class UsersController extends AppController { var $helpers = array('Html','

ajax adding table row

2007-05-16 Thread pete
th a table thanks pete CONTROLLER var $helpers = array('Html','Javascript','Ajax','Form'); function add() { $this->Project->saveProject(); $this->set('data', $this->Project->findAll()); $this->render

json displaying data

2007-05-15 Thread pete
ocalhost/cake/projects/grid_data ({"total":"2","results": [{"id":"1","ProjectTitle":"Bumble","StartDate":"2007-05-10","EndDate":"2007-05-30","Status":"0","Type":

hasAndBelongstoMany problem

2007-05-14 Thread pete
UG SELECT Task.id, Task.description from tasks AS Task JOIN projects_tasks ON (projects_tasks.project_id = 1 AND projects_tasks.task_id = Task.id) Everything works fine, BUT inside projects_tasks there are 2 more fields "start_date", "end_date". how can i include them al

phpThumb caching

2007-01-15 Thread Pete
I was able to get phpThumb working from the Bakery script here: http://bakery.cakephp.org/articles/view/82, but caching doesn't work. Permissions are 777 for the /cache/thumbs folder. I can't seem to get a decent error message from this line: $phpThumb->RenderToFile($phpThumb->cache_filename); D