If the fpdf libraries are at all recent you shouldn't have to use the
goofy php4 constructor. I think if you add your custom pdf class to
your vendors folder and instantiate it from a custom helper as a
member variable you could do a lot more, much more easily.
I actually enjoyed this question so
With no files uploaded into the site, my folder structure looks like
this in my FTP
---
/
myusername/
www.mydomain.com/
---
I uploaded everything from app/webroot into my webroot, whi
Thanks Jeremy,
It worked fine! :)
On Jun 29, 4:05 pm, Jeremy Burns | Class Outfit
wrote:
> Try this in your form:
>
> echo $this->Form->input(
> 'dob',
> array(
> 'label' => 'Date of Birth',
> 'empty' => true,
> 'timeFormat' => '',
Thanks Johan.
On Thu, Jun 30, 2011 at 5:39 AM, Johan wrote:
> You can use a different view, even in a subdirectory (or in a totally
> different directory if you play with relative paths) by using the
> Controller's render() method:
> http://book.cakephp.org/view/980/render
>
> Cheers,
> - Johan
Sam thanks for your patience and help
2011/6/30 Dominik Gajewski :
> Ok I solved all problems and it works
>
> To last problem I added an extra argument to core function in fpdf.php
>
> function FPDF($ww=null, $orientation='P', $unit='mm', $size='A4')
>
> but if someone knows how to solve this wit
The site was decommissioned months ago and everyone was asked to move their
projects to github.com
--
Larry E. Masters
On Wed, Jun 29, 2011 at 5:03 PM, the_woodsman wrote:
> Hi,
>
> I was browsing the bakery, and wanted to take a look at this project:
>
> http://bakery.cakephp.org/articles/nat
Ok I solved all problems and it works
To last problem I added an extra argument to core function in fpdf.php
function FPDF($ww=null, $orientation='P', $unit='mm', $size='A4')
but if someone knows how to solve this without this trick i will
listen to suggestions
2011/6/29 Dominik Gajewski :
> in
Hi,
I was browsing the bakery, and wanted to take a look at this project:
http://bakery.cakephp.org/articles/nate/2007/04/13/geocoding-in-cakephp
which has the source located at https://cakeforge.org/projects/mashup/,
apparently.
However, the source doesn't seem to be available anywhere... have
You can use a different view, even in a subdirectory (or in a totally
different directory if you play with relative paths) by using the
Controller's render() method:
http://book.cakephp.org/view/980/render
Cheers,
- Johan
On Wed, Jun 29, 2011 at 2:53 AM, nOLL wrote:
> Hi,
>
> In app folder i ha
Why don't you give your select an id so you can select it with $() or
->Js->get().
It seems to me that you did not provide an id to the select input so you are
probably not really catching what you want with the Js-Helper.
If you do not want to give it an id then I think it should be something l
in TestController i added this
var $helpers = array('Pdf'=> array('orientation' => 'P','unit' => 'mm'
, 'format'=> 'A4') );
and got this error
Notice (8): Array to string conversion [APP\vendors\fpdf\fpdf.php, line 135]
Code | Context
$orientation= array(
"orientation" => "P",
I think I might have said this wrong. What I'm meaning is when I do a
findByAll query I can specify which fields that query should select
from and return. For instance I want my query to only select and
return the User.username, Message.subject, Message.id fields from
those respective tables and th
two things
1) orienation error is due to you not setting the page as either landscape
or portrait.
it seems that it should default to portrait but that message suggests
something is wrong - its a fpdf error and you should read the docs for fpdf
2) $this->Fpdf->AddPage() for helpers in cake 1.3 (
I'm using this tutorial
http://bakery.cakephp.org/articles/sdevore_myopenid_com/2007/01/27/pdf-helper-using-fpdf
but it is prepared to Cake's version 1.2 and it gives me some errors.
I have to read about Helpers
What i did till know:
Helper views/helpers/pdf.php
'fpdf/fpdf.php'));
if (!defi
I've been poking around with this for a bit and have yet to find out what's
going wrong. I'm passing a paginated result set to a view and everything
renders fine until I try to access the next page of results.
Example:
// CONTROLLER //
$this->paginate = array(
'contain' => array(
'OnlineUser'
What is giving you issues currently?
Back when 1.2 was beta I made a link that allowed users to get a off version
of a page.
Check that the vendor is found correctly
Then made a simple static view out to off and build from there.
Core debug will need to be 0 to display the pdf that can be frust
I want to create reports that take data from database and/ or form
2011/6/29 Sam Sherlock :
> the bakery does have a few articles on pdf generation within cake
>
> app import the vendor.
> App::import('Vendor', 'FPDF', array('file' => 'fpdf/fpdf.php'));
>
>
> or do you want to create a visualizati
Thank you brother.
On Jun 29, 9:37 am, Tilen Majerle wrote:
> place it into app/libs folder
> --
> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> 2011/6/29 Santiago Basulto
>
>
>
>
>
>
>
> > I'm an asshole.
>
> > I've solved the configuration thing.
>
> > Still doesn't know where to place the u
the bakery does have a few articles on pdf generation within cake
app import the vendor.
App::import('Vendor', '*FPDF*', array('file' => '*fpdf*/*fpdf*.php'));
or do you want to create a visualization of model relations in pdf format?
- S
On 29 June 2011 18:54, Dominik Gajewski wrote:
>
Hi
I would like to use FPDF or PDFlib with Cake, and I wonder how to do
it correctly according to cake's schema
Has anyone had any experience in this matter??
--
Dominik Gajewski
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Qu
Hehe,
done :)
Am Mittwoch, den 29.06.2011, 08:57 -0500 schrieb Larry E. Masters:
> Thomas,
>
>
> Submit a talk, you still have a few days :)
>
>
> --
> Larry E. Masters
>
> On Wed, Jun 29, 2011 at 8:14 AM, Thomas Ploch
> wrote:
> Larry,
>
> well, the schedule being
Sounds like a bug, the viewPaths should cascade back to the
application's view files if no themed version exists. If neither
exist then you'll get a missing view error though.
-Mark
On Jun 28, 8:58 pm, kevinnguyen wrote:
> In 1.3, when I render an element that does not exist in the themed
> fol
Yes we have a lot of talks to review and select from.
--
Larry E. Masters
On Wed, Jun 29, 2011 at 11:08 AM, wrote:
> larry
>
> > Prices are early bird, they will be increasing soon after we publish the
> > schedule.
>
> according to the cakefest website, early bird prices apply till the end of
>From what I remember, REST routing should work the same in 2.0 as it
does in 1.3. You can either manually define routes or use
Router::mapResources().
-Mark
On Jun 28, 11:08 pm, Javier wrote:
> Hi all,
>
> I'm trying to implement a RESTful app in CakePHP 2.0, following the
> SimpleSetup guidel
Remove app/webroot/test.php from your deployed version. Its safe to
have up as long as debug=0. But being extra safe never hurt anyone.
-Mark
On Jun 27, 5:21 pm, Santiago Basulto
wrote:
> Hello People.
>
> Would like to make a good list of "things to do" before deploy my App
> in production. H
larry
> Prices are early bird, they will be increasing soon after we publish the
> schedule.
according to the cakefest website, early bird prices apply till the end of
july. based on your comment above, is that still the case?
cheers
mikek
>
> --
> Larry E. Masters
>
> On Wed, Jun 29, 2011 at
Cool - thanks a bunch for your help David. It's a great piece of kit. Even
spending a few hours working it through it's still a massive time saver. Thanks
for your good work.
Jeremy Burns
Class Outfit
Tel: +44 (0) 208 123 3822
Mob: +44 (0) 7973 481949
Skype: jeremy_burns
http://www.classoutfit.
CakeDC Users plugin has roles (a sample app for it does not exist)
take the sample search and build from there
- S
On 29 June 2011 08:14, elogic wrote:
> Hi All,
>
> I have just started with cakePHP, I have been able to get my head
> around creating my own modules however I am having trouble
Alright, nice that it started working for you :)
For the Gd adapter triggering a warning please open a new issue at [1]. This
seems to be an issue with transparent images. It would also help if you can
provide the image file.
The explanation for the duplicate row getting saved is that the behav
as its up to you how you structure your app you can have role or group based
users
or just a plain user that does not relate to groups.
I have three groups admin (1), members (2) & users (3) -- I am beginning to
set up acl (you don't need acl for groups)
[1] admin
[6] sams
[2] members
[3] user
Hi,
How does cake know whether it is a normal user or an admin user?
There are only two types. Admin and Normal User
Both are stored in users table
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.o
Thanks David - the data is now saving correctly. It was me force adding the
foreign_key value in that seemed to cause my problem.
I have now uploaded a logo, and then gone back to change it. Two things
happened; (1) although it's now hasOne it added a second row in the db, and (2)
I got this er
Hi Jeremy,
If you want the ClinicProfile to have just one logo define the relation in
the ClinicProfile as a hasOne instead of a hasMany. [1] might help you.
The data array you've provided in your previous post should then start to
work. Because that is correct for using a hasOne but _not_ for a
You can either add a JOIN [1] query for each HABTM association you want to
filter on the pagination find, or BIND [2] the join table models
(ProductsCategory and ProductsColor) to the Product model as HasOne
associations before doing the pagination. Both would require to specify that
the join must
Hi,
I work with CakePHP just 2 years ago, and the prototype was my choice to
make XHR's, and a few things too. With cake 1.2 and prototype I could do XHR
so easy, but with cake 1.3.10 and jquery I'm doesn't having success.
Well, let's go to the problem.
I have 2 selects, one that populates other
Can you please tell us what exactly you think is not consistant?
If there is something wrong report a bug?
On Jun 29, 1:36 am, Ryan Snowden wrote:
> Also check out the CakeDC plugins (although some parts are inconsistent)
> they do put on a good show
--
Our newest site for the community: CakeP
Hi,
I have a problem, a try to make simple authorization from this book
http://book.cakephp.org/view/1545/Preparing-to-Add-Auth , but it
doesn't work, when i try to sign in, i have Login failed. Invalid
username or password. I found that this is empty password problem and
I found solution
http://m
Hi All,
I have just started with cakePHP, I have been able to get my head
around creating my own modules however I am having trouble with ACL or
role based user account levels. I was wondering if there was somewhere
online a downloaded base install for a web application with cakePHP
and user level
Hi all,
I'm trying to implement a RESTful app in CakePHP 2.0, following the
SimpleSetup guidelines in the cookbook for 1.3, but no luck so far. I
also cloned and generated the documentation for 2.0, but there is no
mention of REST at all (unless I missed it).
Does anybody have a working example o
In 1.3, when I render an element that does not exist in the themed
folder, Cake automatically renders the element in app/views/elements
folder. But Cake 2.0 does not do that and gives me an error saying the
view file is missing in the themed folder
Is anyone else experiencing this? I know 2.0 is no
do you have user groups or roles?
redirect admin users once logged in to an admin dashboard and non admins to
user dashboard
see Alex Moorland comment
http://stackoverflow.com/questions/238358/multiple-login-pages-cake-php
- S
On 29 June 2011 14:54, Prabha Vathi wrote:
> Hi,
>
> How to m
Hi,
In app folder i have "app/views/tests/mails/testing.ctp"
But, i have a problem to view the testing in tests_controller.
The problem is there is no testing() in tests_controller.
Is it possible to create a subfolder or is there another way to
implement it.
Thanks.
--
Our newest site for t
Prices are early bird, they will be increasing soon after we publish the
schedule.
--
Larry E. Masters
On Wed, Jun 29, 2011 at 7:56 AM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:
> Thanks Larry. Can I reset my password?
>
> Are the prices on the site the early birds or the
Thomas,
Submit a talk, you still have a few days :)
--
Larry E. Masters
On Wed, Jun 29, 2011 at 8:14 AM, Thomas Ploch wrote:
> Larry,
>
> well, the schedule being published after June 30th is already sth I
> wanted to know. :)
>
> We'd really like to see an advanced testing with CakePHP and PHP
Hi,
How to mingle user and admin login?
users table have both users and admin. type field differentiate admin and
user.
for user login,
function login() {
}
here how do i know, admin has logged in? How to set additional session for
admin?
--
Our newest site for the community: CakePHP Vi
Hi David
I have followed through with these steps, but am still getting the same result.
Here's my data array:
[ClinicProfile] => Array
(
[id] => 2
[clinic_id] => 4df049cd-b4a8-4d8b-83b3-6ea5b59c8c28
[description] => This is a test clinic description.
Larry,
well, the schedule being published after June 30th is already sth I
wanted to know. :)
We'd really like to see an advanced testing with CakePHP and PHPUnit
workshop as well as a discussion on adding support for document-oriented
databases (CouchDB, MongoDB) in CakePHP 2.x. I think CakePHP
Thanks Larry. Can I reset my password?
Are the prices on the site the early birds or the full amounts? Whichever they
are, what are the others?
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 29 Jun 2011, at 13:52, Larry E. Masters wrote:
> According to http://cakefest.org/speak June
Thomas,
What other information are you looking for?
--
Larry E. Masters
On Wed, Jun 29, 2011 at 6:22 AM, Thomas Ploch wrote:
> I am asking that myself...
>
> We are thinking about going to Manchester, but I really hope that there
> will be some more information soon.
>
>
--
Our newest site fo
According to http://cakefest.org/speak June 30 is last day to submit talks.
We will be posting the schedule soon after all talks have been reviewed and
selected. What questions have been raised and with who? Since we have not
received any other reports of a password problem and many have signed up
place it into app/libs folder
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/6/29 Santiago Basulto
> I'm an asshole.
>
> I've solved the configuration thing.
>
> Still doesn't know where to place the utility classes.
>
> Any Idea?
>
> On Jun 29, 9:23 am, Santiago Basulto
> wrote:
> > He
I'm an asshole.
I've solved the configuration thing.
Still doesn't know where to place the utility classes.
Any Idea?
On Jun 29, 9:23 am, Santiago Basulto
wrote:
> Hello People.
>
> I've been running into trouble when trying to organize the structure
> of one of my components. First, my Compon
Ok, i've read the Configure source code. It Says that i should do
Configure::load($filename). $filename must be in app/config/ and end
with .php But i should not include the extension in the name. Then,
i've something like:
Configure::load("my_config"). Now it works. But says that i've to set
a $c
Hello People.
I've been running into trouble when trying to organize the structure
of one of my components. First, my Component needs to use some utility
classes. I've placed them in the app/vendors folder, but i've read
that folder will be no longer available. Where can i put those
classes? The p
Yes, that's true. But could give more information (that i'm using
CakePHP) to a posible attacker. Who could know any bug in the core of
the framework.
On Jun 28, 9:25 pm, euromark wrote:
> change the security salt
> the cookie name isnt that important because it is public anyway
>
> On 27 Jun., 2
Slight correction to the data structure:
$this->data = array(
'ClinicProfile' => /* ... */,
'Logo' => array(
array('file' => /* here goes the upload array1 */, 'model' =>
'ClinicProfile', 'group' => 'logo'),
array('file' => /* here goes the upload array2 */, 'model' =>
'ClinicProfile
Hey,
Thanks a lot for the information. This is really helpful and a prime example
of giving good debugging information.
The problem is with that you're mixing different configuration scenarios
with the models and therefore also having your data structured incorrectly.
What you actually want
I am asking that myself...
We are thinking about going to Manchester, but I really hope that there
will be some more information soon.
Am Mittwoch, den 29.06.2011, 04:03 -0700 schrieb Jeremy Burns:
> What's the latest with CakeFest (64 days to go)? There are no schedule
> details, no news items s
Try this in your form:
echo $this->Form->input(
'dob',
array(
'label' => 'Date of Birth',
'empty' => true,
'timeFormat' => '',
'minYear' => (
date('Y') - 5
),
'ma
What's the latest with CakeFest (64 days to go)? There are no schedule
details, no news items since first posting on 14th May, no sponsors,
there were some (unanswered) questions raised over pricing and I can't
login with my details. Without these things I can't decide if I want
to go or not.
--
Hi
I have a date selection box for DOB field(the default one provided by
cakephp) which has 3 combo boxes for date, month and year
respectively.
How do I get the year combo box to display a year range ie. I want it
to display the years between (current year - 2)and (current year - 5).
since i'm
Thanks for responding David. I saw your other post too - I have been following
the (very good) documentation, but perhaps I am missing something.
In my original post I referred to a 'Profile' model for simplicity. In fact it
is ClinicProfile.
Here are your answers:
var_dump($this->data) (exclu
Hi Jeremy,
There actually is a tutorial and a FAQ available at
https://github.com/davidpersson/media/blob/next/docs/. The code is
commented pretty well and it's always worth to look into that for i.e.
available behavior settings.
- David
--
Our newest site for the community: CakePHP Video T
Hi Jeremy,
The numeric replacement should definitely not happen. In order to help
debugging and to get a clear idea of your setup I've got following question.
* Can you post a `var_dump()` of the data before you're actually handing it
to the `saveAll()` method?
* Are you saving the data like t
---
madusanka hettiarachchi wants to stay in better touch using some of
Google's coolest new
products.
If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-d248684e4c-ed3f09d500-2ywjvpWSKnWnXI_wOMMtDaOZr
Hi.
I would like to paging products with multi Habtm.
My tables:
products
categories
colors
And HABTM connections
Product HABTM Categories products_categories
Product belongsTo Color
How do I make a query like the following? (width : Habtm Pagination)
Category.id = 3 and Color.id=4 all product
yES, die(debug($this->Student->ValidationErrors)) managed to solve my
problem.
Now, i'm able to save the form data.
Thanks a lot. die(debug($this->Student->ValidationErrors)) is a good
time saver.
On Jun 29, 5:28 am, varai wrote:
> Hi Jeremy,
>
> The following is what i'm getting if I added die(
67 matches
Mail list logo