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 got mail from 139.com
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.com/CakePHP
Find us
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
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?
?php echo $form-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 subscribed
using the requestAction and 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.
My propose
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
?php echo $cakex
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 Jun 18, 8:40 pm, Geoff Ford [EMAIL PROTECTED
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
have so i
cant create a user.thtml file for each table.
thanks for helping
pete
VIEW
table
thead
tr
thFirstName/th
/tr
/thead
tbody id=user
?php foreach ($users as $user): ?
tr
td?php echo $user['User']['FirstName']; ?/td
td
form onSubmit=return
, 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,
im trying to add the selectTag. the select field shows up but i get
the following warning:
Notice: Undefined
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
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from
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.
how do i create a relation
pete
Status is empty.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED
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:
hi,
i have problems using
div a view...
thanks for helping
Pete
VIEW (view.thtml)
div id=resource_? echo $i; ??php echo $resource; ?/div
? print $ajax-editor('resource_'.$i,'/projects/update/'.$i); ?
UPDATE (view update.thtml)
? echo new text; ?
CONTROLLER; //
function update()
{
$this-render('resource_1', 'ajax
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
?=$ajax-div(resource_8); ??=$ajax-divEnd(resource_8); ?
?=$ajax-div(resource_9); ?
thanks
pete
CONTROLLER
var $helpers = array('Html','Javascript','Ajax','Form');
function add()
{
$this-Project-saveProject();
$this-set('data', $this-Project-findAll());
$this-render('todo', 'ajax');
}
VIEW
div id=add_task
form onSubmit=return false;
?php
print
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);
20 matches
Mail list logo