; 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
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
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
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
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
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
(
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
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
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
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
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
user.thtml file for each table.
thanks for helping
pete
VIEW
FirstName
Event.observe("remove<?php echo $user['User']['ID']; ?>",
'click', function
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
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
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
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:
>
[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
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
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');
}
--~--~-~--~~-
\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','
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
ocalhost/cake/projects/grid_data
({"total":"2","results":
[{"id":"1","ProjectTitle":"Bumble","StartDate":"2007-05-10","EndDate":"2007-05-30","Status":"0","Type":
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
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
24 matches
Mail list logo