accessible

symfony2 how to access app/Resources/img from browser?

安稳与你 提交于 2020-01-05 07:34:29
问题 I've got some project specific images that I don't want to include in any bundle. I'd like to have them accessible from twig layer. The question is: how can I publish them (I can see neither symlinks in web directory nor assetic config in my project). Any hint will be appreciated. edit: When I run php app/console assets:install help I get Installing assets for XxxBundle into web/bundles/xxx , but nothing happens for the app/Resources directory. 回答1: If you really don't want to put them in a

Why would the conversion between derived* to base* fails with private inheritance?

蹲街弑〆低调 提交于 2019-11-28 07:29:46
Here is my code - #include<iostream> using namespace std; class base { public: void sid() { } }; class derived : private base { public: void sid() { } }; int main() { base * ptr; ptr = new derived; // error: 'base' is an inaccessible base of 'derived' ptr->sid(); return 0; } This gives a compile time error. error: 'base' is an inaccessible base of 'derived' Since the compiler will try and call the base class sid() why do I get this error? Can someone please explain this. Chubsdad $11.2/4 states- A base class B of N is accessible at R, if an invented public member of B would be a public member

Why would the conversion between derived* to base* fails with private inheritance?

一笑奈何 提交于 2019-11-27 01:50:01
问题 Here is my code - #include<iostream> using namespace std; class base { public: void sid() { } }; class derived : private base { public: void sid() { } }; int main() { base * ptr; ptr = new derived; // error: 'base' is an inaccessible base of 'derived' ptr->sid(); return 0; } This gives a compile time error. error: 'base' is an inaccessible base of 'derived' Since the compiler will try and call the base class sid() why do I get this error? Can someone please explain this. 回答1: $11.2/4 states-