PHP Code Here is the code that processes the DB Designer xml... of course this could be streamlined if one were using PHP 5. <? function transform() { if ( !isset($_REQUEST["xml"]) ) { echo "<h3>Must enter an XML string!</h3>"; return; } $xmlstr = stripslashes($_REQUEST["xml"]); $xml = new DomDocument; // from /ext/dom $xml->loadXML($xmlstr); $xsl
ウェブアプリケーションのDB設計を行うときに、何かツールを使っていますか? 私はDB Designerというツールを使うことが多いです。 このツールについてはDBDesigner 4 日本語化サイトで詳しく解説されていますし、日本語化のパッケージも配布されていますので必見です。 そして、CakePHPで、このDB Designerと連携するdbdesigner2cakeが紹介されていました。 DB DesignerとCakePHPの連携「dbdesigner2cake」 MySQLを使うのであれば確実に利用すべきではないかと思えるほどです。 では、同じようなことがsymfonyではできないのかというと、DB Designerで作成されたデータXMLからPropelのスキーマ(schema.xml)へ変換してくれるツールが公開されています。 DB Designer 4 TO Propel S
うう・・・・ こんなことに半日近く使ってしまった。 とりあえず解決したので状況からメモ。 memory_limit が小さい? symfony がメモリ食いすぎ? 状況は、symfony で init-project init-app init-module した直後に、生成された hoge_dev.php (たとえば、hoge)にアクセスすると、以下のエラーが出るというもの。 Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2204501688 bytes) in /usr/share/pear/symfony/log/sfLogger/sfWebDebugLogger.class.php on line 58運が悪いと、このエラーすらも出力されず、真っ白な画面が写るだけです
個人用メモ&symfony1.0.17での話。 Propel+Creoleで明示的にトランザクションを開始・終了するには <?php $con = Propel::getConnection(); try { $con->begin(); : $con->commit(); } catch (Exception $e) { $con->rollback(); throw $e; } } な感じで、CreoleのConnection#begin、Connection#commit、Connection#rollbackを使えばOK(Connectionはインターフェース)。 で、Propelで作ったモデルのBaseクラスのsaveメソッドを見ると <?php public function save($con = null) { : try { $con->begin(); $affecte
Welcome to the Creole Project Creole is a database abstraction layer for PHP5. It abstracts PHP's native db-specific API to create more portable code while also providing developers with a clean fully object-oriented interface based loosely on the API for Java's JDBC. Creole was originally created as a subproject of Propel to meet specific needs that none of the available abstraction layers were a
\閉鎖予定のサイトも売れるかも?/ アクセスがないサイトもコンテンツ価値で売れる場合も… ドメインの有効期限を更新してサイト売却にトライしてみましょう
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く