And what does this have to do with cakephp? :-)
On 19 feb, 10:06, Double wrote:
> I'm trying to execute an asp page from php and get the executed web
> page (html) to parse.
>
> When I run fopen, it just returns the actual script.
>
> Any ideas?
--~--~-~--~~~---~--~--
I've found the problem: I've used v0.4.6, and you have probably
v0.5.2. I'll update the artice since there are many changes made
between these two versions.
The last time I updated an article, it got unpublished again for some
reason, so please be patient :-)
On 5 feb, 03:20, Kyle Decot wrote:
http://www.ibuildings.com/blog/archives/1543-My-framework-is-better-than-all-other-frameworks.html
On 2 feb, 01:11, yusuf widi wrote:
> Hi guyz... i got this somewhere on the net...
>
> http://www.phpframeworks.com/top-10-php-frameworks/
>
> Why they put cake php on the fifth place? i dont think
'
> > =>
> > > '0'));
>
> > > On Wed, Jan 7, 2009 at 7:35 AM, Phil wrote:
>
> > > > Same problem here - these are my routes:
>
> > > > Router::connect('/intranet/', array('controller' => 'user
It's always "myurl.com/controller/action/params"
So myurl.com/texts matches controller texts by default.
With routes you can however:
Router::connect('/texts', array('controller' => 'books', 'action' =>
'show', 'home'));
So myurl.com/texts matches controller books and action show, with
param 'h
projects
id
name
resource_id
resources
id
resource_category_id
resource_categories
id
name //Tools, People,
On 6 jan, 13:07, James wrote:
> I have a Project table containing two fields resource1 and resource2.
> Each resource_id could map to either tool table or people table.
>
I 'fixed' this by adding this to the core.php:
Configure::write('localePaths', array(APP . 'locale'));
Strange
On 5 jan, 14:59, Marcelius wrote:
> Hi!
>
> I've the cake folder from 1.2 beta to 1.2 final, but all translations
> with the __() fun
Hi!
I've the cake folder from 1.2 beta to 1.2 final, but all translations
with the __() function don't work anymore. (And they did work in
1.2beta) I've cleared the tmp folder, renewed session but no result.
Any ideas?
--~--~-~--~~~---~--~~
You received this messa
I'm usually not the guy who bumbs postings but this problem still
exists... So my question is: is this behavior by design or am I doing
something wrong?
On 12 dec, 07:53, Marcelius wrote:
> Thanks for the anwser but that didn't work here.
>
> The be more clear: If I do not
31, Lane wrote:
> What were you expecting the Router to return if not "/invoices/edit/5/
> owner:1/key:val"?
>
> On Dec 11, 4:39 am, Marcelius wrote:
>
> > Hello!
>
> > I have this route like the manual says for prefix routing:
>
> > Router::connect('
Hello!
I have this route like the manual says for prefix routing:
Router::connect('/owner/:controller/:action/*', array
('prefix'=>'owner', 'owner'=>true));
This works fine until I want to create a url with some named params in
it:
Router::url(array("controller"=>"invoices", "action"=>"edit",
Have you tried to check if tcpdf generated errors? Sometimes if you
send headers, and (php)errors occure, you might not always see some
output. So echo something in your controller and then php should at
leas tell you 'headers allready sent' error. Before that, (php)errors
will show
Also, in the
@Anupom: Any arguments?
Anupom schreef:
> I think PHP helper for writing Javascript is a very bad idea.
>
> On Fri, Oct 31, 2008 at 3:23 PM, martinp <[EMAIL PROTECTED]> wrote:
>
> >
> > Despite the fact that CakePHP comes with a Scriptaculous-powered AJAX
> > Helper, I find JQuery so much easier
sults already are bad for me:
> 50: 642 - 25100
> 100: 1186 - 5
> 200: 2374 - 148650
> Noone will not wait 50 seconds untill page load.
> If I look at system, CPU is loaded (much more vs native-php, but not
> enough to 100% :), but not overloaded until 25 Threads.
>
> On Oct
Growing average time starting from 1000ms? That's a lot :-) If i try
request one page without database queries (and debug = 0), on our dev
server (local network) the response time is about 400ms. Our live
server is located somewhere else in the country with load balancing
enabled and usually respo
I was wandering if your stress test setup is correct and relevant?
100 threads and ramp up of 5 seconds, that's 20 requests per second.
You have 2 pages / requests to test, which would actually generate 40
requests per second.
That would initially explain that 5ms response time because either
You can't make sessions count down. Instead of setting "30sec" in your
session,store "mktime()" for the current time. Next time a user hits
the send button you check the current time with the time you allready
had stored in your session. Note that if a user deletes the browsers
cookie, session get
tor
Zend studio also provides automatic generation of wsdl files but I
found it a bit buggy (read: crashed alot)
Also remember to disable the soap wsdl cache in PHP :-)
On 8 sep, 12:42, . <[EMAIL PROTECTED]> wrote:
> Marcelius, how do you generate the wsdl files? do you use jool.nl's ws
Hi
Don't know the exact problems you have but here's a piece of my soap
implementation. Please note that this is done with php5's sope
extension, not nusoap.
In my site:
domain.com/soapcontroller/wsdl
renderes a wsdl file like so:
public function wsdl(){
Hi!
I have a controller with the RequestHandler component attached, and a
method called by ajax. Now I want to return pure JSON and to do that I
need to set the response header content-type to "application/json".
The problem is that the RequestHandler automaticly sets this response
header so by t
If you are talking about Exception classes (with try..catch) there are
none because cake is php4
PHP errors are handled by the debugger class
On 23 jun, 06:36, SajjadRaza <[EMAIL PROTECTED]> wrote:
> what is the built in mechanism of excetion handling in cakephp
> can we use the custom exception
If you turn debug mode to 1, cache is refreshed so any changes in the
database will be recognized :-)
On 20 jun, 11:06, leo <[EMAIL PROTECTED]> wrote:
> On 20 Juny, 10:33, "Siebren Bakker" <[EMAIL PROTECTED]> wrote:
>
> > I ran into a similar problem, and found an interesting solution that took
>
Hey
Foreach form create a new instance of corresponding model where data
should be saved:
$foo = new MyModel();
foreach($posteddata){
$foo->create($myPostedData);
if ($foo->validates()){
//great...
} else {
$errors = $foo->validationErrors;
]
All your other questions are well documented btw :-
> Hello
>
> I'm having the same kind of problem.
>
> I think it happens when you have a component that extends Component
>
> the problem goes away when you have you components extend Object
>
> any one would comment on this ?
>
> TIA
>
> thomas
>
>
Hi
Just upgraded to CakePHP RC1 and after some minor fixes I found that I
couldn't properly logout anymore. It caused the browser to continously
redirect to the originating url. I found that the problem lies in the
components used by my users controller:
In UsersController:
public function logou
For my project I did create 2 convert functions: One dat converts the
array returned from findAll methods to {Model}.{n}.{Field}, and one
visa versa. I've made this on 1.2.6311 and don't know what changes
have been regarding this but still works for me...
I too had some problems with the formhelp
Hi
Depending on your current Cake version, here's the link for cake 1.2
(checkout the second parameter):
http://api.cakephp.org/1.2/class_model.html#ebe42ae387be89985b5a35dd428f5c81
Marcel
On 18 mei, 14:34, robert123 <[EMAIL PROTECTED]> wrote:
> This seem like a very basic question, but I did n
il the second stage.
>
> You're getting more or less the same result by just sending a GET
> request, but my way was just a little more predictable - and works
> well I think (check outhttp://www.bcfw.co.ukto see it in action).
>
> Steve
>
> On May 17, 7:39 pm, Ma
7;t work that way in PHP (to my knowledge) so the naming
> > system is completely pointless for a GET request!
>
> > I'd love to be proved wrong on this one, it'd sure expand my
> > knwoledge :)
>
> > On May 16, 7:14 pm, Marcelius <[EMAIL PROTECTED]> wro
ng.
>
> Does anyone else agree with this opinion?
>
> -Buddy
>
> On May 15, 4:52 am, Marcelius <[EMAIL PROTECTED]> wrote:
>
> > Hi!
>
> > The situation:
> > //in some view I have:
> > > echo $form->create(array("controller"
Just curious,
If you've created some app with cake, you could think of a mvc diagram
yourself I think :-)
Just think of how you work with it... You create a controller that
extends from some other class, you can reference a model from that
controller (which also extends from some other class), an
Hi!
The situation:
//in some view I have:
create(array("controller"=>"search", "action"=>"index"));
echo $form->input("Region.region_name");
echo $form->end();
?>
Straight forward, nothing to it... Now I want to post data via GET.
Cake doesn't have to worry about handling the 'posted' data becau
Wy is it so damn simple :-p
Thanks!
Amit Badkas schreef:
> On Thu, May 15, 2008 at 12:18 PM, Marcelius <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi
> >
> > Is it possible to make the reverse routing work so that it doesn't add
> > an index action t
Hi
Is it possible to make the reverse routing work so that it doesn't add
an index action to the url? For example:
//In routes.php:
Router::connect('/contact/:action/*', array('controller' =>
'contacts'));
//in some other file:
$url = Helper::url(array("controller"=>"contacts"));
$url now cont
You could store the specific models and controllers in a subfolder
like so:
app
__controllers
sales
finance
__models
sales
finance
Cake will find controllers automaticly, but I thought this doesn't on
views like this
On 11 mei, 00:32, Dave <[EMAIL PROTECTED]> wrote:
> Hi All,
>
Hello
Can someone please tell me how to get the Controller::view property to
work properly? I set the view to a custom view class in a controller
(in the plugins folder). Whatever I tried, I didn't got Cake to load
my view in a 'normal' expected way with any naming convention what so
ever.
What
ple. The
way it is implemented now in the testmanager with setting defines and
checking if a define is a specific value doesn't allow much room for
extending.
Just my thoughts
On 22 apr, 12:09, Marcelius <[EMAIL PROTECTED]> wrote:
> Will there be an option in the future or Cak
Will there be an option in the future or CakePHP to somehow "attach"
an additional custom test reporter to the testmanager?
Searching through the code I didn't find anything usefull so I ended
up hacking the test_manager to add my reporter in the
"CakeTestsGetReporter" method.
:)
--~--~-
Hello!
Simple question: When should I read from the Model::name attribute,
and when from Model::alias? What do the mean and what is exactly the
difference? Any conventions on that?
Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you ar
You kind of answered you own question I think... If "php" doesn't
work, use "database" for example. You don't have to ajust anything
else and you app will work fine...
We prefer storing sessions in the database since that will always
work. For example we had a site were sessions were lost during a
Thanks, got the point :-)
On 11 apr, 13:08, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> > Question: When would one deside to use ClassRegistry::init instead of
> > App:Import and new() ? Wouldn't that be more memory efficient?
>
> ClassRegistry::init() would store a reference, so it can b
Question: When would one deside to use ClassRegistry::init instead of
App:Import and new() ? Wouldn't that be more memory efficient?
On 11 apr, 01:59, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> > I was wondering if it is possible to load models inside a controller
> > in the similar way
sters aka PhpNut" <[EMAIL PROTECTED]>
wrote:
> Marcelius,
> I have fixed the issues with multiple record forms in the latest svn branch
> version of 1.2.x.x
>
> You can grab the latest nightly release with the
> fixes:http://cakephp.org/downloads/index/nightly/1.2.x.x
>
Thanks for your anwsers!
@Bert: Think that method is pretty straight forward, havn't checked it
yet but I'm sure that will work without any problems
@grigri: Seems like it doesn't do it's job like it should in my
situation, do I need to configure something?
I think it has something to do with th
44 matches
Mail list logo